package com.twetec.cms.model.vo.website;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

@ApiModel
public class ImageFileVO implements Serializable {
    /**
     * 文件原始名字
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "文件原始名称", example = "XXXX.jpg")
    private String name;

    /**
     * 文件后缀
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "文件后缀", example = "jpg")
    private String ext;

    /**
     * 文件大小
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "文件大小", example = "12312")
    private Long fileSize;

    /**
     * 上传后返回的文件名
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "上传后返回的文件名", example = "/M00/00/22/Chfek1-PzZGEbWhNAAAAAJqogLo980.txt")
    private String remoteFileName;

    /**
     * 文件路径
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "文件路径", example = "http://127.0.0.1/M00/00/22/Chfek1-PzZGEbWhNAAAAAJqogLo980.txt")
    private String fileUrl;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getExt() {
        return ext;
    }

    public void setExt(String ext) {
        this.ext = ext;
    }

    public Long getFileSize() {
        return fileSize;
    }

    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }

    public String getRemoteFileName() {
        return remoteFileName;
    }

    public void setRemoteFileName(String remoteFileName) {
        this.remoteFileName = remoteFileName;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    @Override
    public String toString() {
        return "LogoFileVO{" +
                "name='" + name + '\'' +
                ", ext='" + ext + '\'' +
                ", fileSize=" + fileSize +
                ", remoteFileName='" + remoteFileName + '\'' +
                ", fileUrl='" + fileUrl + '\'' +
                '}';
    }
}
